<?php
/**
 * Module Template:
 * Loaded by product-type template to display additional product images.
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_modules_additional_images.php 3215 2006-03-20 06:05:55Z birdbrain $
 */
 
  require(DIR_WS_MODULES . zen_get_module_directory('additional_images.php'));
 
  echo '<script type="text/javascript" src="' .  $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/jquery.lightbox-0.5.js" ></script>'."\n";
 ?>


 <?php
 if ($flag_show_product_info_additional_images != 0 && $num_images > 0) {
  ?>
	<div id="gallery">
		<ul>
				
		<?php
			if (is_array($list_box_contents) > 0 ) {
				for($row=0;$row<sizeof($list_box_contents);$row++) {
				echo '<li><a href="' . $list_box_contents[$row]['large_link'] . '" class="lightbox" >
				<img src="'.$list_box_contents[$row]['base_image'].'" width="130" height="130" alt="" /></a></li>';
			}
		?> 
		</ul>
	</div>

<?php 
  }
  }
?>